﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using SoucreGame.DTO;
using SoucreGame.DTO.KyNang;
using SoucreGame.GLO;
using SoucreGame.BUS;
using SoucreGame.BUS.CBusiSkill;

namespace SoucreGame.BUS
{
    class CBusiHoiMau: CBusiKyNang
    {
        public CBusiHoiMau(ContentManager content, GameTime gameTime, SpriteBatch spriteBatch)
            :base(content,gameTime, spriteBatch)
        {
            this.KyNang = new CInfoHoiMau(content, gameTime, spriteBatch);
            LoadDuLieu();
        }
        public CBusiHoiMau()
            : base()
        {
            this.KyNang = new CInfoHoiMau();
            LoadDuLieu();
        }

        private void LoadDuLieu()
        {
            this.KyNang.Ten = KyNang.Ten;
            this.KyNang.PhamViAnhHuong = KyNang.PhamViAnhHuong;
            this.KyNang.SucTanCong = KyNang.SucTanCong;
            this.KyNang.HinhTheHien = KyNang.HinhTheHien;
            this.KyNang.ViTriAnh = KyNang.ViTriAnh;
            this.KyNang.TocDoDiChuyen = KyNang.TocDoDiChuyen;
            this.KyNang.SttAnhBatDau = KyNang.SttAnhBatDau;
            this.KyNang.SoLuongAnh = KyNang.SoLuongAnh;
            this.KyNang.VecPos = KyNang.VecPos;
            this.KyNang.ChuKyDiChuyen = KyNang.ChuKyDiChuyen;
        }

        public override void Update(GameTime gameTime)
        {
            hanhDong = chon.DungYen;
            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            hanhDong = chon.DungYen;
            base.Draw(gameTime);
        }
    }
}
